<template>
  <div>
    <h1>Child</h1>
    <p>接收的值是{{ count }}</p>
    <button @click="changeCount(2)">向父组件传值修改count</button>
  </div>
</template>

<script>
export default {
  name: "Child",
  props:['count','changeCount']
};
</script>

<style>
</style>